import json

with open('D:/1-School/知识工程实践/3/党史知识图谱可视化系统/code/zhishigongchengshijian/src/data/combinedData2.json', encoding='utf-8') as f:
    j: list = json.loads(f.read())    
    
import random
random.shuffle(j)
j2 = str(j[:200]).replace('\'', '\"').replace(r'\x\w\w', '').replace('\n', '').replace(r'[1]\xa0\n', '')

with open('D:/1-School/知识工程实践/3/党史知识图谱可视化系统/code/zhishigongchengshijian/src/data/combinedData.json', 'w', encoding='utf-8') as g:    
    g.write(j2)